<script type="text/javascript">
    function initialize() {
        var mapOptions = { mapTypeId: google.maps.MapTypeId.ROADMAP };
        var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
        var bounds = new google.maps.LatLngBounds();
        <?php $c = 0; ?>
        <?php foreach($this->points as $point) : ?>
        <?php $c++; ?>
        var mkLtln_<?php echo $c ?> = new google.maps.LatLng(<?php echo $point['lat'] ?>,<?php echo $point['lng'] ?>);
        var marker_<?php echo $c ?> = new google.maps.Marker({position: mkLtln_<?php echo $c ?>, title:"<?php echo $point['title'] ?>" });
        marker_<?php echo $c ?>.setMap(map);
        bounds.extend(marker_<?php echo $c . '.position' ?>);
        <?php endforeach ?>
        map.fitBounds(bounds);
      }  
</script>